﻿<%@ Page Language="C#" MasterPageFile="~/Shared.Master" AutoEventWireup="true" CodeBehind="dashboard.aspx.cs"
    Inherits="Lawyer.Web.dashboard" Title="Legal Firm Management System V1.0" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <div class="main-content">
        <header>
                            <ul class="action-buttons clearfix">
<%--                                <li><a href="webhelper.aspx" class="zoombox button help"  data-icon-primary="ui-icon-help" data-icon-only="true" >Help</a></li>
--%>                            </ul>
                            <h2>
                                Overview
                            </h2>
                        </header>
        <section class="container_6 clearfix">
                        
                            <div class="grid_6">
                                <div class="ui-widget message info closeable">
                                    <div class="ui-state-highlight ui-corner-all"> 
                                        <p>
                                            <span class="ui-icon ui-icon-info"></span>
                                            <strong>This is your recently activities.</strong>
                                        </p>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="grid_6 leading">
                                <fieldset class="fieldset-buttons ui-corner-all">
                                    <legend class="buttonset-legend">
                                        <span id="dashboardview-filter" class="buttonset">
                                            <input type="radio" name="dashboardview" id="dashboardview-alerts" value=".dash-alert" checked /><label for="dashboardview-alerts">Alerts</label>
                                            <input type="radio" name="dashboardview" id="dashboardview-todo" value=".dash-todo" /><label for="dashboardview-todo">Todo</label>
                                            <input type="radio" name="dashboardview" id="dashboardview-all" value="*" /><label for="dashboardview-all">All</label>
                                        </span>
                                    </legend>
                                    <ul class="isotope-widgets isotope-container">
                                        <asp:Repeater ID="rptBoxAlertList" runat="server">
                                            <ItemTemplate>
                                                <li class="dash-alert">
                                            <a class="button-red ui-corner-all" href="archivelist.aspx?status=1" target="_blank">
                                                <strong><%#Eval("Type") == "10" ? "Activity" : "Case"%></strong>
                                                <span><%#Eval("Title") %> <%#Eval("CreatedDate","{0:yyyy-M-d}") %></span>
                                            </a>
                                        </li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                        <asp:Repeater ID="rptBoxTodoList" runat="server">
                                            <ItemTemplate>
                                                <li class="dash-todo">
                                            <a class="button-orange ui-corner-all zoombox" href="activityshow.aspx?id=<%#Eval("ActivityID") %>" target="_blank">
                                                <strong><%#Eval("StartDate","{0:d/M/yyyy}") %></strong>
                                                <span><%#Eval("Title") %></span>
                                            </a>
                                        </li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                        

                                    </ul>
                                </fieldset>
                            </div>
                            
                            <div class="clear"></div>
                            
                            <div class="grid_6 leading">
                                <div class="ui-widget message info closeable">
                                    <div class="ui-state-highlight ui-corner-all"> 
                                        <p>
                                            <span class="ui-icon ui-icon-info"></span>
                                            <strong>System Announcements And Your Alerts</strong> 
                                        </p>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="clear"></div>
                            
                            <div class="sortable leading clearfix">
                                <div class="grid_3 portlet collapsible" id="widget-orders" draggable="true">
                                    <header>
                                        <h2>Announcement</h2>
                                    </header>
                                    <section class="no-padding">
                                        <table class="full">
                                            <tbody>
                                            <asp:Repeater ID="rptPostList" runat="server">
                                                <ItemTemplate>
                                                    <tr>
                                                        <td class="zoombox"><a href='postshow.aspx?id=<%#Eval("PostID") %>'><%#Eval("Tile") %></a></td>
                                                        <td class="ar"><%#Eval("CreatedDate","{0:yyyy-M-d}") %></td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                            <%--<tr> 
                                            <td colspan="2">
                                            <a href="postlist.aspx" class="displayblock"">more</a>
                                            </td>
                                            </tr>--%>
           
                                            </tbody>
                                        </table>
                                    </section>
                                </div>
                                
                                <div class="grid_2 portlet collapsible" id="widget-tickets" draggable="true">
                                    <header>
                                        <h2>Cases assigned to me </h2>
                                    </header>
                                    <section class="no-padding">
                                        <table class="full">
                                            <tbody>
                                            <asp:Repeater ID="rptMyTodoList" runat="server">
                                                <ItemTemplate>
                                                <%--<% if (DataBinder.Eval(Container.DataItem,"Type") == "10")
                                                   { %>--%>
                                                    <tr>
                                                        <td><a href="archivelist.aspx?status=1">New Case:<%#Eval("Title") %></a></td>
                                                        <td class="ar"><%#Eval("CreatedDate","{0:yyyy-M-d}") %></td>
                                                    </tr>
                                                <%--<%}else{ %>
                                                    <tr>
                                                        <td>An expired Activity:<a href="#"><%#Eval("Title") %></a></td>
                                                        <td class="ar"><%#Eval("CreatedDate","{0:yyyy-M-d}") %></td>
                                                    </tr>
                                                <%} %>--%>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                            
                                            </tbody>
                                        </table>
                                    </section>
                                </div>
                            </div>
                            
                            <div class="clear"></div>
                            
                            <div class="grid_6 leading">
                                <div class="ui-widget message info closeable">
                                    <div class="ui-state-highlight ui-corner-all"> 
                                        <p>
                                            <span class="ui-icon ui-icon-info"></span>
                                            <strong>Your recent Activities' Details</strong>
                                        </p>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="clear"></div>
                            
                            <div class="grid_6 leading">
                                <div class="portlet collapsible" id="widget-todolist">
                                    <header>
                                        <h2>Todo List</h2>
                                    </header>
                                    <section class="no-padding clearfix">
                                        <table class="full">
                                            <thead>
                                                <tr>
                                                    <th class="ui-state-default">Start Date</th>
                                                    <th class="ui-state-default">Type</th>
                                                    <th class="ui-state-default">Title</th>
                                                    <th class="ui-state-default">Due Date</th>
                                                    <th class="ui-state-default">Fee(￡)</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            <asp:Repeater ID="rptTodoList" runat="server">
                                                <ItemTemplate>
                                                    <tr>
                                                        <td><%#Eval("StartDate") %></td>
                                                        <td><%#Eval("Type") %></td>
                                                        <td><%#Eval("Title") %></td>
                                                        <td><%#Eval("EndDate") %></td>
                                                        <td class="ac"><%#Eval("Fee") %></td></tr>
                                                </ItemTemplate>
                                            </asp:Repeater>                                                
                                            </tbody>
                                        </table>
                                    </section>
                                </div>
                            </div>
                            
                            <div class="grid_6 leading">
                                <div class="portlet collapsible" id="widget-latestactivity">
                                    <header>
                                        <h2>Recent Closed Activities</h2>
                                    </header>
                                    <section class="no-padding clearfix">
                                        <table class="full">
                                            <thead>
                                                <tr>
                                                    <th class="ui-state-default">Date</th>
                                                    <th class="ui-state-default">Type</th>
                                                    <th class="ui-state-default">Title</th>
                                                    <th class="ui-state-default">Description</th>
                                                    <th class="ui-state-default">Fee(￡)</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <asp:Repeater ID="rptLatestList" runat="server">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td><%#Eval("EndDate")%></td>
                                                            <td><%#Eval("Type") %></td>
                                                            <td><%#Eval("Title") %></td>
                                                            <td><%#Eval("Detail") %></td>
                                                            <td class="ac"><%#Eval("Fee") %></td></tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </tbody>
                                        </table>
                                    </section>
                                </div>
                            </div>
                            
                        </section>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideBar" runat="server">
    <nav>
    <a class="chevron" href="#">&raquo;</a>
    <ul>
        <li  class="current"><a href="dashboard.aspx" class="navicon-house">Overview</a></li>
        <li><a href="archivelist.aspx" class="navicon-calendar">Case</a></li>
        <li><a href="activity.aspx" class="navicon-ekg">My Activities</a></li>     
        <li><a href="file.aspx" class="navicon-cabinet">My Resource</a></li>
        <li><a href="contacts.aspx" class="navicon-id-card">Contacts</a></li>
    </ul>
</nav>
</asp:Content>
